﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleItem.aspx.cs" Inherits="Manage_Cms_RoleItem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <link rel="icon" href="../pic/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="../pic/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../css/style.css" type="text/css" />
    <link rel="stylesheet" href="../css/Table.css" type="text/css" />
    <!--<script src="../js/iportalcore.js"></script><script src="../js/global.js"></script><script language="javascript" src="../js/prototype.js"></script><script language="javascript" src="../js/scriptaculous/scriptaculous.js"></script>-->

    <script language="javascript" src="../js/jquery.js"></script>

    <script language="javascript" src="../js/iportal.js"></script>

    <script language="javascript" src="../js/FormValid.js"></script>

    <script language="javascript" src="../js/PopWin.js"></script>

    <script language="javascript" src="../js/iPop.js"></script>

    <script type="text/javascript" src="../JS/DatePicker/WdatePicker.js"></script>

    <link rel="stylesheet" href="../Themes/Blue/style.css" type="text/css" />

    <script type="text/javascript" language="javascript">
               
        function CheckAll()
        {
            var userIDs="";
            
            var otherIDs="";
            
            var   i;   
            
            for   (i=0;i<document.all.length;i++)   
            {   
                if   (document.all(i).name == 'checked')     
                {                       
                    if(document.all(i).checked   ==  true)
                    {
                        userIDs=userIDs+document.all(i).id+",";
                    }
                    else if(document.all(i).checked   == false)
                    {
                       otherIDs=otherIDs+document.all(i).id+","; 
                    }
                }   
             }
             if(userIDs=="")
             {
                alert("请选择用户！");
                return false;
             }
             else
             { 
                window.location.href='RoleItem.aspx?act=edit&userids='+userIDs+"&id=<%=SiteID %>&otherids="+otherIDs;
             }
        }
    </script>

</head>
<body>
    <div class="column" style="overflow:auto; height:410px;">
        <div class="columntitle">
            管理角色</div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 400px;border-collapse: collapse;">
            <tr class="summary-title" style="height: 25px;">
                <td align="center">
                    角色名称</td>
                <td align="left">
                    用户名</td>
            </tr>
            <%
                foreach (KeRui.Model.AdminRole modelAdminRole in listAdminRole)
                {
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                style="height: 25px;">
                <td align="center">
                    <b>
                        <%=modelAdminRole.RoleName %>
                    </b>
                </td>
                <td align="left">
                    <%=GetUserName(modelAdminRole.RoleID.ToString()) %>
                </td>
            </tr>
            <%
                }
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                style="height: 25px;">
                <td align="center">
                    <b style="font-style:italic;">
                        未分组
                    </b>
                </td>
                <td align="left">
                    <%=GetUserName("") %>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <input type="button" onclick="CheckAll();" name="sub" value=" <%=ActName %> " class="button" />
        <input type="button" class="button" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');" />
    </div>
</body>
</html>
